// import request from '@/utils/request'
import request from '@/libs/request'

// 登录
export function login_get(data) {
  return request.get(`index/login`,data)
}

// 登录
export function login(data) {
  return request.post(`index/login`,data)
}
// 获取验证码
export function get_captcha() {
  return request.get(`index/getCaptcha`)
}
// 登出
export function logout() {
  return request.get(`index/logout`)
}
// 获取用户信息
export function getInfo() {
  return request.get(`index/getInfo`)
}
//获取权限
export function getAuthMenu(){
  return request.get(`index/menulist`)
}
//控制台
export function dashboard(data){
  return request.get(`General/dashboard`,data)
}
